//
//  NSData+PYUploader.m
//  IHome
//
//  Created by Jim on 2019/3/23.
//  Copyright © 2019 com.zhujizheng. All rights reserved.
//

#import "NSData+PYUploader.h"

@implementation NSData (PYUploader)

/**
 上传到七牛云
 
 @param progress 上传进度
 @param completion 上传回调
 */
- (void)uploadToQiniu:(nullable void (^)(float))progress
                       completion:(void (^)(NSString *))completion
{
    if (self == nil) {
        NSLog(@"上传数据为nil");
        return;
    }
    [PYHttp uploadData:self progress:progress completion:completion];
}
@end
